package com.wkq.dao;

import com.wkq.domain.Traveller;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ITravellerDao {
    @Select(" select id, name, sex, phoneNum, credentialsType, credentialsNum, travellerType" +
            " from traveller as t right join order_traveller as o on t.id = o.travellerId where o.orderId = #{orderId} ")
    public List<Traveller> findAll (int orderId);
}
